package cn.gov.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

@SuppressWarnings("serial")
public class Role implements Serializable {

    private Integer roleId;
    private String roleName;
    private String roleDesc;
    private String optionId;
    private Date updateTime;
    private Date createTime;
    private Long lastUpdateUserId;

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                ", optionId='" + optionId + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", lastUpdateUserId=" + lastUpdateUserId +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Role role = (Role) o;
        return Objects.equals(roleId, role.roleId) &&
                Objects.equals(roleName, role.roleName) &&
                Objects.equals(roleDesc, role.roleDesc) &&
                Objects.equals(optionId, role.optionId) &&
                Objects.equals(updateTime, role.updateTime) &&
                Objects.equals(createTime, role.createTime) &&
                Objects.equals(lastUpdateUserId, role.lastUpdateUserId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(roleId, roleName, roleDesc, optionId, updateTime, createTime, lastUpdateUserId);
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public String getOptionId() {
        return optionId;
    }

    public void setOptionId(String optionId) {
        this.optionId = optionId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getLastUpdateUserId() {
        return lastUpdateUserId;
    }

    public void setLastUpdateUserId(Long lastUpdateUserId) {
        this.lastUpdateUserId = lastUpdateUserId;
    }

}
